<?php
// <copyright file="AuthenticationType.cs" company="NQtec">
// Copyright (c) 2008, 2009 All Right Reserved, http://www.dqer.com/
// Copyright (c) 2008, 2009 All Right Reserved, http://www.nqtec.com/
//
// This source is part of the DQER library that released under the LGPL.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Victor Gatkov</author>
// <email>v.gatkov@nqtec.com</email>
// <email>info@dqer.com</email>
// <date>2008-09-11</date>
// <summary>Contains a base, abstract class for an AuthorisationPolicyProvider</summary>

class Email {

   function it($from, $to, $subj, $body){

   if ($from=='' || $to=='' || $subj=='' || $body=='') return;

  $headers = "From: $to\r\n";
  $headers.= "Reply-To: $to\r\n";
  $headers.= "Return-Path: $to\r\n";
  $headers.= "X-Mailer: DQER framework simple mailer\r\n";
  $headers.= "Organization: ".URL."\r\n";
  $headers.= "X-Priority: 3 (Normal)\r\n";
  $headers.= "Mime-Version: 1.0\r\n";
  $headers.= "Content-Transfer-Encoding: 8bit\r\n";
  $headers.= "Date:" . date("D, d M Y h:s:i") . " +0300\r\n";

$mmm = "info@yveq.com";

 if(defined('EMAIL_ACTIVE')){$mx=mail($mmm, $subj, $body, $headers);}else{die();}

return $mx;


   }

};

?>
